<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>阅学网</title>
<meta name="Keywords"
	content="阅学网">
<meta name="description"
	content="阅学网">
<jsp:include page="/user/common.jsp" />
<script src="js/user/article/article.js?v=1.0"></script>
</head>
<body>
<jsp:include page="/user/top.jsp"></jsp:include>
<jsp:include page="/user/article/articleLeft.jsp"></jsp:include>
<%-- <div style="float: left;width:75%;">
	<div style="width: 100%;height: 35px;margin:3px 0 3px 8px;">
	 <div class="input-group"  style="width: 320px;" >
		<input type="text" class="form-control"/>
		 <span class="input-group-btn">
				<button type="button" class="btn btn-primary">查询</button>
				<button type="button" class="btn btn-info"  onclick="location.href='<%=basePath%>user/article/publishArticle'">添加文章</button>
		</span>
		</div>
	</div>
	<div class="user-articel-list">
		<table class="table">
			  <thead>
			    <tr>
			      <th><input type="checkbox"></th>
			      			<th>标题</th>
							<th>时间</th>
							<th>访问</th>
							<th>评论</th>
							<th>操作</th>
			      </tr>
			  </thead>
 			 <tbody>
  					<c:forEach items="${listArticles }" var="draftArticles">
						<tr>
							<td><input type="checkbox"></td>
							<td>${draftArticles.articleTitle }</td>
							<td><fmt:formatDate value="${draftArticles.createDate}" type="both" pattern="yyyy-MM-dd HH:mm:ss" /></td>
							<td>${draftArticles.clickRate }</td>
							<td>${draftArticles.supportNum }</td>
							<td>
								<a href="user/article/putToRecycle?id=${draftArticles.id }">删除</a>
								<a href="#">编辑</a>
								<a href="user/article/setToDraft?id=${draftArticles.id }">恢复</a>
							</td>
						</tr>
				</c:forEach>
  			</tbody>
		</table>
				<ul class="pagination" >
							    <li><a href="#">&laquo;</a></li>
							    <li class="active"><a href="#">1</a></li>
							    <li ><a href="#">2</a></li>
							    <li><a href="#">3</a></li>
							    <li><a href="#">4</a></li>
							    <li><a href="#">5</a></li>
							    <li><a href="#">&raquo;</a></li>
					</ul>
	</div>
</div> --%>
<div style="float: left;width:75%;">
    <div class="panel-body" style="padding-bottom:0px;">
        <div class="panel panel-default">
            <div class="panel-heading">查询条件</div>
            <div class="panel-body">
                <form id="formSearch" class="form-horizontal">
                    <div class="form-group" style="margin-top:15px">
                        <label class="control-label col-sm-1" >标题</label>
                        <div class="col-sm-3">
                            <input type="text" class="form-control" id="articleTitle" name="articleTitle">
                        </div>
                        <label class="control-label col-sm-1">状态</label>
                        <div class="col-sm-3">
                            <input type="text" class="form-control" id="status">
                        </div>
                        <div class="col-sm-4" style="text-align:left;">
                            <button type="button" style="margin-left:50px" id="draft-articel-query" class="btn btn-primary">查询</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>       

        <div id="toolbar" class="btn-group">
            <button id="btn_add" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
            </button>
            <button id="btn_edit" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>修改
            </button>
            <button id="btn_delete" type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
            </button>
        </div>
        <table id="user-draft-articel-list-table"></table>
    </div>
 </div>
</body>
</html>
